#!/usr/sbin
# callls the logger s/set/export/gi s///gi s/$_//$/gi s//.cmd/.sh/gi for *nix ; ) 
# the name of the Product 
export $_ProductName=morphus

# the version of the current Product 
export $_ProductVersion=0.1.0

# could be dev , test , qa , prod
export $_ProductType=dev

# who owns this Product / environment 
export $_ProductOwner=ysg

# build the environment name	
export $_EnvironmentName=$_ProductName.$_ProductVersion.$_ProductType.$_ProductOwner

# the basedir 
export $_BaseDir=~

# The version directory of the Product 
export $_ProductVersionDir=$_BaseDir/$_ProductName/$_EnvironmentName

# The Perl script performing all the tasks
export $_PerlScript=$_ProductVersionDir/sfw/perl/$_ProductName.pl

# the IniFile containing all the configuration 
# Note the computername which must be replaced with the hostName of the 
# running host 
export $_IniFile=$_ProductVersionDir/conf/$_EnvironmentName.$host.ini

# where the error logs of this call are situated 
export $_ErrorLog=$_ProductVersionDir/data/log/$_ProductName.sh.error.log

# where the running of this 
export $_RunLog=$_ProductVersionDir/data/log/$_ProductName.sh.log

echo Check the variables 
echo date is date time is time > $_RunLog
echo date is date time is time > $_ErrorLog


# Action !!!
perl $_PerlScript $_IniFile >> $_RunLog 2>> $_ErrorLog

cat  $_RunLog
cat $_ErrorLog
# ping localhost -n 5
